<?php



class TaxiOrderMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TaxiOrderMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('taxi_order');
		$tMap->setPhpName('TaxiOrder');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('DATE', 'Date', 'int', CreoleTypes::DATE, true, null);

		$tMap->addColumn('TIME', 'Time', 'int', CreoleTypes::TIME, true, null);

		$tMap->addColumn('NAME', 'Name', 'string', CreoleTypes::VARCHAR, true, 100);

		$tMap->addColumn('CONTACT_NUMBER', 'ContactNumber', 'string', CreoleTypes::VARCHAR, true, 100);

		$tMap->addColumn('PICKUP_ADDRESS', 'PickupAddress', 'string', CreoleTypes::VARCHAR, true, 200);

		$tMap->addColumn('DESTINATION_ADDRESS', 'DestinationAddress', 'string', CreoleTypes::VARCHAR, true, 200);

		$tMap->addColumn('NUMBER_OF_PASSENGERS', 'NumberOfPassengers', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('NUMBER_OF_LUGGAGE', 'NumberOfLuggage', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('VEHICLE_TYPE', 'VehicleType', 'string', CreoleTypes::VARCHAR, true, 100);

		$tMap->addColumn('COMMENT', 'Comment', 'string', CreoleTypes::LONGVARCHAR, true, null);

		$tMap->addColumn('COST', 'Cost', 'double', CreoleTypes::DECIMAL, true, 10);

		$tMap->addForeignKey('DRIVER_ID', 'DriverId', 'int', CreoleTypes::INTEGER, 'taxi_driver', 'ID', true, null);

	} 
} 